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
Confirmation of a server being launched
Fields
§
destination: Destination
Updated location of the spawned server
Connected
Confirmation of a connection being established
Fields
§
id: ConnectionId
Authenticate
Authentication information being sent to a client
Fields
§
id: ManagerAuthenticationId
Id tied to authentication information in case a response is needed
§
msg: Authentication
Authentication message
Info(ConnectionInfo)
Information about a specific connection
List(ConnectionList)
List of connections in the form of id -> destination
Channel
Forward a response back to a specific channel that made a request
Fields
§
id: ManagerChannelId
Id of the channel
§
response: UntypedResponse<'static>
Untyped response to send through the channel
ChannelOpened
Indicates that a channel has been opened
Fields
§
id: ManagerChannelId
Id of the channel
ChannelClosed
Indicates that a channel has been closed
Fields
§
id: ManagerChannelId
Id of the channel
Trait Implementations§
Source§impl Clone for ManagerResponse
impl Clone for ManagerResponse
Source§fn clone(&self) -> ManagerResponse
fn clone(&self) -> ManagerResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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 Freeze for ManagerResponse
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