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