pub enum CookieManagerRequest {
ObserveCookieChanges {
url: Option<String>,
name: Option<String>,
changes: ServerEnd<CookiesIteratorMarker>,
control_handle: CookieManagerControlHandle,
},
GetCookieList {
url: Option<String>,
name: Option<String>,
cookies: ServerEnd<CookiesIteratorMarker>,
control_handle: CookieManagerControlHandle,
},
}
Expand description
Provides methods for monitoring and accessing browser cookie state.
Variants§
ObserveCookieChanges
Observe changes to all cookies named name
that would be sent in a request to url
.
If neither url
nor name
are set then all cookies are observed. If only url
is set
then all cookies for that URL are observed. If both are set then only cookies matching both
fields are observed.
changes
iterates over a stream of cookie changes. Additions or updates are expressed as
complete cookies, while deletions are expressed as cookies with no value
set.
GetCookieList
Returns a list of Cookies, optionally limited to those matching url
, and optionally
name
. cookies
iterates over the matching cookies, including their value
s.
Implementations§
Source§impl CookieManagerRequest
impl CookieManagerRequest
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CookieManagerRequest
impl !RefUnwindSafe for CookieManagerRequest
impl Send for CookieManagerRequest
impl Sync for CookieManagerRequest
impl Unpin for CookieManagerRequest
impl !UnwindSafe for CookieManagerRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more