pub trait ImplResponse:
Clone
+ Sized
+ Rc {
Show 18 methods
// Required methods
fn is_read_only(&self) -> c_int;
fn error(&self) -> Errorcode;
fn set_error(&self, error: Errorcode);
fn status(&self) -> c_int;
fn set_status(&self, status: c_int);
fn status_text(&self) -> CefStringUserfree;
fn set_status_text(&self, status_text: Option<&CefString>);
fn mime_type(&self) -> CefStringUserfree;
fn set_mime_type(&self, mime_type: Option<&CefString>);
fn charset(&self) -> CefStringUserfree;
fn set_charset(&self, charset: Option<&CefString>);
fn header_by_name(&self, name: Option<&CefString>) -> CefStringUserfree;
fn set_header_by_name(
&self,
name: Option<&CefString>,
value: Option<&CefString>,
overwrite: c_int,
);
fn header_map(&self, header_map: Option<&mut CefStringMultimap>);
fn set_header_map(&self, header_map: Option<&mut CefStringMultimap>);
fn url(&self) -> CefStringUserfree;
fn set_url(&self, url: Option<&CefString>);
fn get_raw(&self) -> *mut _cef_response_t;
}Required Methods§
Sourcefn is_read_only(&self) -> c_int
fn is_read_only(&self) -> c_int
See _cef_response_t::is_read_only for more documentation.
Sourcefn error(&self) -> Errorcode
fn error(&self) -> Errorcode
See _cef_response_t::get_error for more documentation.
Sourcefn set_error(&self, error: Errorcode)
fn set_error(&self, error: Errorcode)
See _cef_response_t::set_error for more documentation.
Sourcefn status(&self) -> c_int
fn status(&self) -> c_int
See _cef_response_t::get_status for more documentation.
Sourcefn set_status(&self, status: c_int)
fn set_status(&self, status: c_int)
See _cef_response_t::set_status for more documentation.
Sourcefn status_text(&self) -> CefStringUserfree
fn status_text(&self) -> CefStringUserfree
See _cef_response_t::get_status_text for more documentation.
Sourcefn set_status_text(&self, status_text: Option<&CefString>)
fn set_status_text(&self, status_text: Option<&CefString>)
See _cef_response_t::set_status_text for more documentation.
Sourcefn mime_type(&self) -> CefStringUserfree
fn mime_type(&self) -> CefStringUserfree
See _cef_response_t::get_mime_type for more documentation.
Sourcefn set_mime_type(&self, mime_type: Option<&CefString>)
fn set_mime_type(&self, mime_type: Option<&CefString>)
See _cef_response_t::set_mime_type for more documentation.
Sourcefn charset(&self) -> CefStringUserfree
fn charset(&self) -> CefStringUserfree
See _cef_response_t::get_charset for more documentation.
Sourcefn set_charset(&self, charset: Option<&CefString>)
fn set_charset(&self, charset: Option<&CefString>)
See _cef_response_t::set_charset for more documentation.
Sourcefn header_by_name(&self, name: Option<&CefString>) -> CefStringUserfree
fn header_by_name(&self, name: Option<&CefString>) -> CefStringUserfree
See _cef_response_t::get_header_by_name for more documentation.
Sourcefn set_header_by_name(
&self,
name: Option<&CefString>,
value: Option<&CefString>,
overwrite: c_int,
)
fn set_header_by_name( &self, name: Option<&CefString>, value: Option<&CefString>, overwrite: c_int, )
See _cef_response_t::set_header_by_name for more documentation.
Sourcefn header_map(&self, header_map: Option<&mut CefStringMultimap>)
fn header_map(&self, header_map: Option<&mut CefStringMultimap>)
See _cef_response_t::get_header_map for more documentation.
Sourcefn set_header_map(&self, header_map: Option<&mut CefStringMultimap>)
fn set_header_map(&self, header_map: Option<&mut CefStringMultimap>)
See _cef_response_t::set_header_map for more documentation.
Sourcefn url(&self) -> CefStringUserfree
fn url(&self) -> CefStringUserfree
See _cef_response_t::get_url for more documentation.
Sourcefn set_url(&self, url: Option<&CefString>)
fn set_url(&self, url: Option<&CefString>)
See _cef_response_t::set_url for more documentation.
fn get_raw(&self) -> *mut _cef_response_t
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.