pub enum Error {
Show 24 variants
InvalidRankCardinality {
expected: usize,
actual: usize,
},
NameParseError(NameParseError),
HostMeshRefParseError(HostMeshRefParseError),
AllocatorError(Box<AllocatorError>),
ChannelError(Box<ChannelError>),
MailboxError(Box<MailboxError>),
CodecError(CodecError),
ConfigurationError(Error),
UnroutableMesh(),
CallError(ActorId, Error),
ActorTypeNotRegistered(String),
GspawnError(Name, String),
SendingError(ActorId, Box<MailboxSenderError>),
CastingError(Name, Error),
HostMeshAgentConfigurationError(ActorId, String),
ProcCreationError {
state: State<ProcState>,
host_rank: usize,
mesh_agent: ActorRef<HostMeshAgent>,
},
ProcSpawnError {
statuses: RankedValues<Status>,
},
ActorSpawnError {
statuses: RankedValues<Status>,
},
ActorStopError {
statuses: RankedValues<Status>,
},
SingletonActorSpawnError(Error),
ControllerActorSpawnError(Name, Error),
NotExist(Name),
Io(Error),
Host(HostError),
}Expand description
Errors that occur during mesh operations.
Variants§
InvalidRankCardinality
NameParseError(NameParseError)
HostMeshRefParseError(HostMeshRefParseError)
AllocatorError(Box<AllocatorError>)
ChannelError(Box<ChannelError>)
MailboxError(Box<MailboxError>)
CodecError(CodecError)
ConfigurationError(Error)
UnroutableMesh()
CallError(ActorId, Error)
ActorTypeNotRegistered(String)
GspawnError(Name, String)
SendingError(ActorId, Box<MailboxSenderError>)
CastingError(Name, Error)
HostMeshAgentConfigurationError(ActorId, String)
ProcCreationError
ProcSpawnError
Fields
statuses: RankedValues<Status>ActorSpawnError
Fields
statuses: RankedValues<Status>ActorStopError
Fields
statuses: RankedValues<Status>SingletonActorSpawnError(Error)
ControllerActorSpawnError(Name, Error)
NotExist(Name)
Io(Error)
Host(HostError)
Implementations§
Source§impl Error
impl Error
Sourcepub fn is_invalid_rank_cardinality(&self) -> bool
pub fn is_invalid_rank_cardinality(&self) -> bool
Returns true if this is a Error::InvalidRankCardinality, otherwise false
Sourcepub fn as_invalid_rank_cardinality_mut(
&mut self,
) -> Option<(&mut usize, &mut usize)>
pub fn as_invalid_rank_cardinality_mut( &mut self, ) -> Option<(&mut usize, &mut usize)>
Optionally returns mutable references to the inner fields if this is a Error::InvalidRankCardinality, otherwise None
Sourcepub fn as_invalid_rank_cardinality(&self) -> Option<(&usize, &usize)>
pub fn as_invalid_rank_cardinality(&self) -> Option<(&usize, &usize)>
Optionally returns references to the inner fields if this is a Error::InvalidRankCardinality, otherwise None
Sourcepub fn into_invalid_rank_cardinality(self) -> Result<(usize, usize), Self>
pub fn into_invalid_rank_cardinality(self) -> Result<(usize, usize), Self>
Returns the inner fields if this is a Error::InvalidRankCardinality, otherwise returns back the enum in the Err case of the result
Sourcepub fn is_name_parse_error(&self) -> bool
pub fn is_name_parse_error(&self) -> bool
Returns true if this is a Error::NameParseError, otherwise false
Sourcepub fn as_name_parse_error_mut(&mut self) -> Option<&mut NameParseError>
pub fn as_name_parse_error_mut(&mut self) -> Option<&mut NameParseError>
Optionally returns mutable references to the inner fields if this is a Error::NameParseError, otherwise None
Sourcepub fn as_name_parse_error(&self) -> Option<&NameParseError>
pub fn as_name_parse_error(&self) -> Option<&NameParseError>
Optionally returns references to the inner fields if this is a Error::NameParseError, otherwise None
Sourcepub fn into_name_parse_error(self) -> Result<NameParseError, Self>
pub fn into_name_parse_error(self) -> Result<NameParseError, Self>
Returns the inner fields if this is a Error::NameParseError, otherwise returns back the enum in the Err case of the result
Sourcepub fn is_host_mesh_ref_parse_error(&self) -> bool
pub fn is_host_mesh_ref_parse_error(&self) -> bool
Returns true if this is a Error::HostMeshRefParseError, otherwise false
Sourcepub fn as_host_mesh_ref_parse_error_mut(
&mut self,
) -> Option<&mut HostMeshRefParseError>
pub fn as_host_mesh_ref_parse_error_mut( &mut self, ) -> Option<&mut HostMeshRefParseError>
Optionally returns mutable references to the inner fields if this is a Error::HostMeshRefParseError, otherwise None
Sourcepub fn as_host_mesh_ref_parse_error(&self) -> Option<&HostMeshRefParseError>
pub fn as_host_mesh_ref_parse_error(&self) -> Option<&HostMeshRefParseError>
Optionally returns references to the inner fields if this is a Error::HostMeshRefParseError, otherwise None
Sourcepub fn into_host_mesh_ref_parse_error(
self,
) -> Result<HostMeshRefParseError, Self>
pub fn into_host_mesh_ref_parse_error( self, ) -> Result<HostMeshRefParseError, Self>
Returns the inner fields if this is a Error::HostMeshRefParseError, otherwise returns back the enum in the Err case of the result
Sourcepub fn is_allocator_error(&self) -> bool
pub fn is_allocator_error(&self) -> bool
Returns true if this is a Error::AllocatorError, otherwise false
Sourcepub fn as_allocator_error_mut(&mut self) -> Option<&mut Box<AllocatorError>>
pub fn as_allocator_error_mut(&mut self) -> Option<&mut Box<AllocatorError>>
Optionally returns mutable references to the inner fields if this is a Error::AllocatorError, otherwise None
Sourcepub fn as_allocator_error(&self) -> Option<&Box<AllocatorError>>
pub fn as_allocator_error(&self) -> Option<&Box<AllocatorError>>
Optionally returns references to the inner fields if this is a Error::AllocatorError, otherwise None
Sourcepub fn into_allocator_error(self) -> Result<Box<AllocatorError>, Self>
pub fn into_allocator_error(self) -> Result<Box<AllocatorError>, Self>
Returns the inner fields if this is a Error::AllocatorError, otherwise returns back the enum in the Err case of the result
Sourcepub fn is_channel_error(&self) -> bool
pub fn is_channel_error(&self) -> bool
Returns true if this is a Error::ChannelError, otherwise false
Sourcepub fn as_channel_error_mut(&mut self) -> Option<&mut Box<ChannelError>>
pub fn as_channel_error_mut(&mut self) -> Option<&mut Box<ChannelError>>
Optionally returns mutable references to the inner fields if this is a Error::ChannelError, otherwise None
Sourcepub fn as_channel_error(&self) -> Option<&Box<ChannelError>>
pub fn as_channel_error(&self) -> Option<&Box<ChannelError>>
Optionally returns references to the inner fields if this is a Error::ChannelError, otherwise None
Sourcepub fn into_channel_error(self) -> Result<Box<ChannelError>, Self>
pub fn into_channel_error(self) -> Result<Box<ChannelError>, Self>
Returns the inner fields if this is a Error::ChannelError, otherwise returns back the enum in the Err case of the result
Sourcepub fn is_mailbox_error(&self) -> bool
pub fn is_mailbox_error(&self) -> bool
Returns true if this is a Error::MailboxError, otherwise false
Sourcepub fn as_mailbox_error_mut(&mut self) -> Option<&mut Box<MailboxError>>
pub fn as_mailbox_error_mut(&mut self) -> Option<&mut Box<MailboxError>>
Optionally returns mutable references to the inner fields if this is a Error::MailboxError, otherwise None
Sourcepub fn as_mailbox_error(&self) -> Option<&Box<MailboxError>>
pub fn as_mailbox_error(&self) -> Option<&Box<MailboxError>>
Optionally returns references to the inner fields if this is a Error::MailboxError, otherwise None
Sourcepub fn into_mailbox_error(self) -> Result<Box<MailboxError>, Self>
pub fn into_mailbox_error(self) -> Result<Box<MailboxError>, Self>
Returns the inner fields if this is a Error::MailboxError, otherwise returns back the enum in the Err case of the result
Sourcepub fn is_codec_error(&self) -> bool
pub fn is_codec_error(&self) -> bool
Returns true if this is a Error::CodecError, otherwise false
Sourcepub fn as_codec_error_mut(&mut self) -> Option<&mut CodecError>
pub fn as_codec_error_mut(&mut self) -> Option<&mut CodecError>
Optionally returns mutable references to the inner fields if this is a Error::CodecError, otherwise None
Sourcepub fn as_codec_error(&self) -> Option<&CodecError>
pub fn as_codec_error(&self) -> Option<&CodecError>
Optionally returns references to the inner fields if this is a Error::CodecError, otherwise None
Sourcepub fn into_codec_error(self) -> Result<CodecError, Self>
pub fn into_codec_error(self) -> Result<CodecError, Self>
Returns the inner fields if this is a Error::CodecError, otherwise returns back the enum in the Err case of the result
Sourcepub fn is_configuration_error(&self) -> bool
pub fn is_configuration_error(&self) -> bool
Returns true if this is a Error::ConfigurationError, otherwise false
Sourcepub fn as_configuration_error_mut(&mut self) -> Option<&mut Error>
pub fn as_configuration_error_mut(&mut self) -> Option<&mut Error>
Optionally returns mutable references to the inner fields if this is a Error::ConfigurationError, otherwise None
Sourcepub fn as_configuration_error(&self) -> Option<&Error>
pub fn as_configuration_error(&self) -> Option<&Error>
Optionally returns references to the inner fields if this is a Error::ConfigurationError, otherwise None
Sourcepub fn into_configuration_error(self) -> Result<Error, Self>
pub fn into_configuration_error(self) -> Result<Error, Self>
Returns the inner fields if this is a Error::ConfigurationError, otherwise returns back the enum in the Err case of the result
Sourcepub fn is_unroutable_mesh(&self) -> bool
pub fn is_unroutable_mesh(&self) -> bool
Returns true if this is a Error::UnroutableMesh, otherwise false
Sourcepub fn as_unroutable_mesh_mut(&mut self) -> Option<()>
pub fn as_unroutable_mesh_mut(&mut self) -> Option<()>
Optionally returns mutable references to the inner fields if this is a Error::UnroutableMesh, otherwise None
Sourcepub fn as_unroutable_mesh(&self) -> Option<()>
pub fn as_unroutable_mesh(&self) -> Option<()>
Optionally returns references to the inner fields if this is a Error::UnroutableMesh, otherwise None
Sourcepub fn into_unroutable_mesh(self) -> Result<(), Self>
pub fn into_unroutable_mesh(self) -> Result<(), Self>
Returns the inner fields if this is a Error::UnroutableMesh, otherwise returns back the enum in the Err case of the result
Sourcepub fn is_call_error(&self) -> bool
pub fn is_call_error(&self) -> bool
Returns true if this is a Error::CallError, otherwise false
Sourcepub fn as_call_error_mut(&mut self) -> Option<(&mut ActorId, &mut Error)>
pub fn as_call_error_mut(&mut self) -> Option<(&mut ActorId, &mut Error)>
Optionally returns mutable references to the inner fields if this is a Error::CallError, otherwise None
Sourcepub fn as_call_error(&self) -> Option<(&ActorId, &Error)>
pub fn as_call_error(&self) -> Option<(&ActorId, &Error)>
Optionally returns references to the inner fields if this is a Error::CallError, otherwise None
Sourcepub fn into_call_error(self) -> Result<(ActorId, Error), Self>
pub fn into_call_error(self) -> Result<(ActorId, Error), Self>
Returns the inner fields if this is a Error::CallError, otherwise returns back the enum in the Err case of the result
Sourcepub fn is_actor_type_not_registered(&self) -> bool
pub fn is_actor_type_not_registered(&self) -> bool
Returns true if this is a Error::ActorTypeNotRegistered, otherwise false
Sourcepub fn as_actor_type_not_registered_mut(&mut self) -> Option<&mut String>
pub fn as_actor_type_not_registered_mut(&mut self) -> Option<&mut String>
Optionally returns mutable references to the inner fields if this is a Error::ActorTypeNotRegistered, otherwise None
Sourcepub fn as_actor_type_not_registered(&self) -> Option<&String>
pub fn as_actor_type_not_registered(&self) -> Option<&String>
Optionally returns references to the inner fields if this is a Error::ActorTypeNotRegistered, otherwise None
Sourcepub fn into_actor_type_not_registered(self) -> Result<String, Self>
pub fn into_actor_type_not_registered(self) -> Result<String, Self>
Returns the inner fields if this is a Error::ActorTypeNotRegistered, otherwise returns back the enum in the Err case of the result
Sourcepub fn is_gspawn_error(&self) -> bool
pub fn is_gspawn_error(&self) -> bool
Returns true if this is a Error::GspawnError, otherwise false
Sourcepub fn as_gspawn_error_mut(&mut self) -> Option<(&mut Name, &mut String)>
pub fn as_gspawn_error_mut(&mut self) -> Option<(&mut Name, &mut String)>
Optionally returns mutable references to the inner fields if this is a Error::GspawnError, otherwise None
Sourcepub fn as_gspawn_error(&self) -> Option<(&Name, &String)>
pub fn as_gspawn_error(&self) -> Option<(&Name, &String)>
Optionally returns references to the inner fields if this is a Error::GspawnError, otherwise None
Sourcepub fn into_gspawn_error(self) -> Result<(Name, String), Self>
pub fn into_gspawn_error(self) -> Result<(Name, String), Self>
Returns the inner fields if this is a Error::GspawnError, otherwise returns back the enum in the Err case of the result
Sourcepub fn is_sending_error(&self) -> bool
pub fn is_sending_error(&self) -> bool
Returns true if this is a Error::SendingError, otherwise false
Sourcepub fn as_sending_error_mut(
&mut self,
) -> Option<(&mut ActorId, &mut Box<MailboxSenderError>)>
pub fn as_sending_error_mut( &mut self, ) -> Option<(&mut ActorId, &mut Box<MailboxSenderError>)>
Optionally returns mutable references to the inner fields if this is a Error::SendingError, otherwise None
Sourcepub fn as_sending_error(&self) -> Option<(&ActorId, &Box<MailboxSenderError>)>
pub fn as_sending_error(&self) -> Option<(&ActorId, &Box<MailboxSenderError>)>
Optionally returns references to the inner fields if this is a Error::SendingError, otherwise None
Sourcepub fn into_sending_error(
self,
) -> Result<(ActorId, Box<MailboxSenderError>), Self>
pub fn into_sending_error( self, ) -> Result<(ActorId, Box<MailboxSenderError>), Self>
Returns the inner fields if this is a Error::SendingError, otherwise returns back the enum in the Err case of the result
Sourcepub fn is_casting_error(&self) -> bool
pub fn is_casting_error(&self) -> bool
Returns true if this is a Error::CastingError, otherwise false
Sourcepub fn as_casting_error_mut(&mut self) -> Option<(&mut Name, &mut Error)>
pub fn as_casting_error_mut(&mut self) -> Option<(&mut Name, &mut Error)>
Optionally returns mutable references to the inner fields if this is a Error::CastingError, otherwise None
Sourcepub fn as_casting_error(&self) -> Option<(&Name, &Error)>
pub fn as_casting_error(&self) -> Option<(&Name, &Error)>
Optionally returns references to the inner fields if this is a Error::CastingError, otherwise None
Sourcepub fn into_casting_error(self) -> Result<(Name, Error), Self>
pub fn into_casting_error(self) -> Result<(Name, Error), Self>
Returns the inner fields if this is a Error::CastingError, otherwise returns back the enum in the Err case of the result
Sourcepub fn is_host_mesh_agent_configuration_error(&self) -> bool
pub fn is_host_mesh_agent_configuration_error(&self) -> bool
Returns true if this is a Error::HostMeshAgentConfigurationError, otherwise false
Sourcepub fn as_host_mesh_agent_configuration_error_mut(
&mut self,
) -> Option<(&mut ActorId, &mut String)>
pub fn as_host_mesh_agent_configuration_error_mut( &mut self, ) -> Option<(&mut ActorId, &mut String)>
Optionally returns mutable references to the inner fields if this is a Error::HostMeshAgentConfigurationError, otherwise None
Sourcepub fn as_host_mesh_agent_configuration_error(
&self,
) -> Option<(&ActorId, &String)>
pub fn as_host_mesh_agent_configuration_error( &self, ) -> Option<(&ActorId, &String)>
Optionally returns references to the inner fields if this is a Error::HostMeshAgentConfigurationError, otherwise None
Sourcepub fn into_host_mesh_agent_configuration_error(
self,
) -> Result<(ActorId, String), Self>
pub fn into_host_mesh_agent_configuration_error( self, ) -> Result<(ActorId, String), Self>
Returns the inner fields if this is a Error::HostMeshAgentConfigurationError, otherwise returns back the enum in the Err case of the result
Sourcepub fn is_proc_creation_error(&self) -> bool
pub fn is_proc_creation_error(&self) -> bool
Returns true if this is a Error::ProcCreationError, otherwise false
Sourcepub fn as_proc_creation_error_mut(
&mut self,
) -> Option<(&mut State<ProcState>, &mut usize, &mut ActorRef<HostMeshAgent>)>
pub fn as_proc_creation_error_mut( &mut self, ) -> Option<(&mut State<ProcState>, &mut usize, &mut ActorRef<HostMeshAgent>)>
Optionally returns mutable references to the inner fields if this is a Error::ProcCreationError, otherwise None
Sourcepub fn as_proc_creation_error(
&self,
) -> Option<(&State<ProcState>, &usize, &ActorRef<HostMeshAgent>)>
pub fn as_proc_creation_error( &self, ) -> Option<(&State<ProcState>, &usize, &ActorRef<HostMeshAgent>)>
Optionally returns references to the inner fields if this is a Error::ProcCreationError, otherwise None
Sourcepub fn into_proc_creation_error(
self,
) -> Result<(State<ProcState>, usize, ActorRef<HostMeshAgent>), Self>
pub fn into_proc_creation_error( self, ) -> Result<(State<ProcState>, usize, ActorRef<HostMeshAgent>), Self>
Returns the inner fields if this is a Error::ProcCreationError, otherwise returns back the enum in the Err case of the result
Sourcepub fn is_proc_spawn_error(&self) -> bool
pub fn is_proc_spawn_error(&self) -> bool
Returns true if this is a Error::ProcSpawnError, otherwise false
Sourcepub fn as_proc_spawn_error_mut(&mut self) -> Option<&mut RankedValues<Status>>
pub fn as_proc_spawn_error_mut(&mut self) -> Option<&mut RankedValues<Status>>
Optionally returns mutable references to the inner fields if this is a Error::ProcSpawnError, otherwise None
Sourcepub fn as_proc_spawn_error(&self) -> Option<&RankedValues<Status>>
pub fn as_proc_spawn_error(&self) -> Option<&RankedValues<Status>>
Optionally returns references to the inner fields if this is a Error::ProcSpawnError, otherwise None
Sourcepub fn into_proc_spawn_error(self) -> Result<RankedValues<Status>, Self>
pub fn into_proc_spawn_error(self) -> Result<RankedValues<Status>, Self>
Returns the inner fields if this is a Error::ProcSpawnError, otherwise returns back the enum in the Err case of the result
Sourcepub fn is_actor_spawn_error(&self) -> bool
pub fn is_actor_spawn_error(&self) -> bool
Returns true if this is a Error::ActorSpawnError, otherwise false
Sourcepub fn as_actor_spawn_error_mut(&mut self) -> Option<&mut RankedValues<Status>>
pub fn as_actor_spawn_error_mut(&mut self) -> Option<&mut RankedValues<Status>>
Optionally returns mutable references to the inner fields if this is a Error::ActorSpawnError, otherwise None
Sourcepub fn as_actor_spawn_error(&self) -> Option<&RankedValues<Status>>
pub fn as_actor_spawn_error(&self) -> Option<&RankedValues<Status>>
Optionally returns references to the inner fields if this is a Error::ActorSpawnError, otherwise None
Sourcepub fn into_actor_spawn_error(self) -> Result<RankedValues<Status>, Self>
pub fn into_actor_spawn_error(self) -> Result<RankedValues<Status>, Self>
Returns the inner fields if this is a Error::ActorSpawnError, otherwise returns back the enum in the Err case of the result
Sourcepub fn is_actor_stop_error(&self) -> bool
pub fn is_actor_stop_error(&self) -> bool
Returns true if this is a Error::ActorStopError, otherwise false
Sourcepub fn as_actor_stop_error_mut(&mut self) -> Option<&mut RankedValues<Status>>
pub fn as_actor_stop_error_mut(&mut self) -> Option<&mut RankedValues<Status>>
Optionally returns mutable references to the inner fields if this is a Error::ActorStopError, otherwise None
Sourcepub fn as_actor_stop_error(&self) -> Option<&RankedValues<Status>>
pub fn as_actor_stop_error(&self) -> Option<&RankedValues<Status>>
Optionally returns references to the inner fields if this is a Error::ActorStopError, otherwise None
Sourcepub fn into_actor_stop_error(self) -> Result<RankedValues<Status>, Self>
pub fn into_actor_stop_error(self) -> Result<RankedValues<Status>, Self>
Returns the inner fields if this is a Error::ActorStopError, otherwise returns back the enum in the Err case of the result
Sourcepub fn is_singleton_actor_spawn_error(&self) -> bool
pub fn is_singleton_actor_spawn_error(&self) -> bool
Returns true if this is a Error::SingletonActorSpawnError, otherwise false
Sourcepub fn as_singleton_actor_spawn_error_mut(&mut self) -> Option<&mut Error>
pub fn as_singleton_actor_spawn_error_mut(&mut self) -> Option<&mut Error>
Optionally returns mutable references to the inner fields if this is a Error::SingletonActorSpawnError, otherwise None
Sourcepub fn as_singleton_actor_spawn_error(&self) -> Option<&Error>
pub fn as_singleton_actor_spawn_error(&self) -> Option<&Error>
Optionally returns references to the inner fields if this is a Error::SingletonActorSpawnError, otherwise None
Sourcepub fn into_singleton_actor_spawn_error(self) -> Result<Error, Self>
pub fn into_singleton_actor_spawn_error(self) -> Result<Error, Self>
Returns the inner fields if this is a Error::SingletonActorSpawnError, otherwise returns back the enum in the Err case of the result
Sourcepub fn is_controller_actor_spawn_error(&self) -> bool
pub fn is_controller_actor_spawn_error(&self) -> bool
Returns true if this is a Error::ControllerActorSpawnError, otherwise false
Sourcepub fn as_controller_actor_spawn_error_mut(
&mut self,
) -> Option<(&mut Name, &mut Error)>
pub fn as_controller_actor_spawn_error_mut( &mut self, ) -> Option<(&mut Name, &mut Error)>
Optionally returns mutable references to the inner fields if this is a Error::ControllerActorSpawnError, otherwise None
Sourcepub fn as_controller_actor_spawn_error(&self) -> Option<(&Name, &Error)>
pub fn as_controller_actor_spawn_error(&self) -> Option<(&Name, &Error)>
Optionally returns references to the inner fields if this is a Error::ControllerActorSpawnError, otherwise None
Sourcepub fn into_controller_actor_spawn_error(self) -> Result<(Name, Error), Self>
pub fn into_controller_actor_spawn_error(self) -> Result<(Name, Error), Self>
Returns the inner fields if this is a Error::ControllerActorSpawnError, otherwise returns back the enum in the Err case of the result
Sourcepub fn is_not_exist(&self) -> bool
pub fn is_not_exist(&self) -> bool
Returns true if this is a Error::NotExist, otherwise false
Sourcepub fn as_not_exist_mut(&mut self) -> Option<&mut Name>
pub fn as_not_exist_mut(&mut self) -> Option<&mut Name>
Optionally returns mutable references to the inner fields if this is a Error::NotExist, otherwise None
Sourcepub fn as_not_exist(&self) -> Option<&Name>
pub fn as_not_exist(&self) -> Option<&Name>
Optionally returns references to the inner fields if this is a Error::NotExist, otherwise None
Sourcepub fn into_not_exist(self) -> Result<Name, Self>
pub fn into_not_exist(self) -> Result<Name, Self>
Returns the inner fields if this is a Error::NotExist, otherwise returns back the enum in the Err case of the result
Sourcepub fn as_io_mut(&mut self) -> Option<&mut Error>
pub fn as_io_mut(&mut self) -> Option<&mut Error>
Optionally returns mutable references to the inner fields if this is a Error::Io, otherwise None
Sourcepub fn as_io(&self) -> Option<&Error>
pub fn as_io(&self) -> Option<&Error>
Optionally returns references to the inner fields if this is a Error::Io, otherwise None
Sourcepub fn into_io(self) -> Result<Error, Self>
pub fn into_io(self) -> Result<Error, Self>
Returns the inner fields if this is a Error::Io, otherwise returns back the enum in the Err case of the result
Sourcepub fn as_host_mut(&mut self) -> Option<&mut HostError>
pub fn as_host_mut(&mut self) -> Option<&mut HostError>
Optionally returns mutable references to the inner fields if this is a Error::Host, otherwise None
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<AllocatorError> for Error
impl From<AllocatorError> for Error
Source§fn from(e: AllocatorError) -> Self
fn from(e: AllocatorError) -> Self
Source§impl From<Box<AllocatorError>> for Error
impl From<Box<AllocatorError>> for Error
Source§fn from(source: Box<AllocatorError>) -> Self
fn from(source: Box<AllocatorError>) -> Self
Source§impl From<Box<ChannelError>> for Error
impl From<Box<ChannelError>> for Error
Source§fn from(source: Box<ChannelError>) -> Self
fn from(source: Box<ChannelError>) -> Self
Source§impl From<Box<MailboxError>> for Error
impl From<Box<MailboxError>> for Error
Source§fn from(source: Box<MailboxError>) -> Self
fn from(source: Box<MailboxError>) -> Self
Source§impl From<ChannelError> for Error
impl From<ChannelError> for Error
Source§fn from(e: ChannelError) -> Self
fn from(e: ChannelError) -> Self
Source§impl From<CodecError> for Error
impl From<CodecError> for Error
Source§fn from(source: CodecError) -> Self
fn from(source: CodecError) -> Self
Source§impl From<Error> for HostMeshRefParseError
impl From<Error> for HostMeshRefParseError
Source§impl From<HostMeshRefParseError> for Error
impl From<HostMeshRefParseError> for Error
Source§fn from(source: HostMeshRefParseError) -> Self
fn from(source: HostMeshRefParseError) -> Self
Source§impl From<InvalidCardinality> for Error
impl From<InvalidCardinality> for Error
Source§fn from(e: InvalidCardinality) -> Self
fn from(e: InvalidCardinality) -> Self
Source§impl From<MailboxError> for Error
impl From<MailboxError> for Error
Source§fn from(e: MailboxError) -> Self
fn from(e: MailboxError) -> Self
Source§impl From<NameParseError> for Error
impl From<NameParseError> for Error
Source§fn from(source: NameParseError) -> Self
fn from(source: NameParseError) -> Self
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<A, M> Handler<IndexedErasedUnbound<M>> for A
impl<A, M> Handler<IndexedErasedUnbound<M>> for A
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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 more