Enum distant_net::manager::ManagerResponse
source · pub enum ManagerResponse {
Killed,
Error {
description: String,
},
Version {
version: SemVer,
},
Launched {
destination: Destination,
},
Connected {
id: ConnectionId,
},
Authenticate {
id: ManagerAuthenticationId,
msg: Authentication,
},
Info(ConnectionInfo),
List(ConnectionList),
Channel {
id: ManagerChannelId,
response: UntypedResponse<'static>,
},
ChannelOpened {
id: ManagerChannelId,
},
ChannelClosed {
id: ManagerChannelId,
},
}
Variants§
Killed
Acknowledgement that a connection was killed
Error
Indicates that some error occurred during a request
Version
Information about the manager’s version.
Launched
Fields
§
destination: Destination
Updated location of the spawned server
Confirmation of a server being launched
Connected
Fields
§
id: ConnectionId
Confirmation of a connection being established
Authenticate
Fields
§
id: ManagerAuthenticationId
Id tied to authentication information in case a response is needed
§
msg: Authentication
Authentication message
Authentication information being sent to a client
Info(ConnectionInfo)
Information about a specific connection
List(ConnectionList)
List of connections in the form of id -> destination
Channel
Fields
§
id: ManagerChannelId
Id of the channel
§
response: UntypedResponse<'static>
Untyped response to send through the channel
Forward a response back to a specific channel that made a request
ChannelOpened
Fields
§
id: ManagerChannelId
Id of the channel
Indicates that a channel has been opened
ChannelClosed
Fields
§
id: ManagerChannelId
Id of the channel
Indicates that a channel has been closed
Trait Implementations§
source§impl Clone for ManagerResponse
impl Clone for ManagerResponse
source§fn clone(&self) -> ManagerResponse
fn clone(&self) -> ManagerResponse
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ManagerResponse
impl Debug for ManagerResponse
source§impl<'de> Deserialize<'de> for ManagerResponse
impl<'de> Deserialize<'de> for ManagerResponse
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<T: Error> From<T> for ManagerResponse
impl<T: Error> From<T> for ManagerResponse
Auto Trait Implementations§
impl RefUnwindSafe for ManagerResponse
impl Send for ManagerResponse
impl Sync for ManagerResponse
impl Unpin for ManagerResponse
impl UnwindSafe for ManagerResponse
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