Enum net_traits::CoreResourceMsg
source · pub enum CoreResourceMsg {
Show 15 variants
Fetch(RequestBuilder, FetchChannels),
FetchRedirect(RequestBuilder, ResponseInit, IpcSender<FetchResponseMsg>, Option<IpcReceiver<()>>),
SetCookieForUrl(ServoUrl, Serde<Cookie<'static>>, CookieSource),
SetCookiesForUrl(ServoUrl, Vec<Serde<Cookie<'static>>>, CookieSource),
GetCookiesForUrl(ServoUrl, IpcSender<Option<String>>, CookieSource),
GetCookiesDataForUrl(ServoUrl, IpcSender<Vec<Serde<Cookie<'static>>>>, CookieSource),
DeleteCookies(ServoUrl),
GetHistoryState(HistoryStateId, IpcSender<Option<Vec<u8>>>),
SetHistoryState(HistoryStateId, Vec<u8>),
RemoveHistoryStates(Vec<HistoryStateId>),
Synchronize(IpcSender<()>),
ClearCache,
NetworkMediator(IpcSender<CustomResponseMediator>, ImmutableOrigin),
ToFileManager(FileManagerThreadMsg),
Exit(IpcSender<()>),
}
Variants§
Fetch(RequestBuilder, FetchChannels)
FetchRedirect(RequestBuilder, ResponseInit, IpcSender<FetchResponseMsg>, Option<IpcReceiver<()>>)
Initiate a fetch in response to processing a redirection
SetCookieForUrl(ServoUrl, Serde<Cookie<'static>>, CookieSource)
Store a cookie for a given originating URL
SetCookiesForUrl(ServoUrl, Vec<Serde<Cookie<'static>>>, CookieSource)
Store a set of cookies for a given originating URL
GetCookiesForUrl(ServoUrl, IpcSender<Option<String>>, CookieSource)
Retrieve the stored cookies for a given URL
GetCookiesDataForUrl(ServoUrl, IpcSender<Vec<Serde<Cookie<'static>>>>, CookieSource)
Get a cookie by name for a given originating URL
DeleteCookies(ServoUrl)
GetHistoryState(HistoryStateId, IpcSender<Option<Vec<u8>>>)
Get a history state by a given history state id
SetHistoryState(HistoryStateId, Vec<u8>)
Set a history state for a given history state id
RemoveHistoryStates(Vec<HistoryStateId>)
Removes history states for the given ids
Synchronize(IpcSender<()>)
Synchronization message solely for knowing the state of the ResourceChannelManager loop
ClearCache
Clear the network cache.
NetworkMediator(IpcSender<CustomResponseMediator>, ImmutableOrigin)
Send the service worker network mediator for an origin to CoreResourceThread
ToFileManager(FileManagerThreadMsg)
Message forwarded to file manager’s handler
Exit(IpcSender<()>)
Break the load handler loop, send a reply when done cleaning up local resources and exit
Trait Implementations§
source§impl Debug for CoreResourceMsg
impl Debug for CoreResourceMsg
source§impl<'de> Deserialize<'de> for CoreResourceMsg
impl<'de> Deserialize<'de> for CoreResourceMsg
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl IpcSend<CoreResourceMsg> for ResourceThreads
impl IpcSend<CoreResourceMsg> for ResourceThreads
source§fn send(&self, msg: CoreResourceMsg) -> IpcSendResult
fn send(&self, msg: CoreResourceMsg) -> IpcSendResult
send message T
source§fn sender(&self) -> IpcSender<CoreResourceMsg>
fn sender(&self) -> IpcSender<CoreResourceMsg>
get underlying sender
Auto Trait Implementations§
impl !Freeze for CoreResourceMsg
impl !RefUnwindSafe for CoreResourceMsg
impl Send for CoreResourceMsg
impl !Sync for CoreResourceMsg
impl Unpin for CoreResourceMsg
impl UnwindSafe for CoreResourceMsg
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert