pub enum SessionIdError {
Empty,
UnsafeCharacters,
}Expand description
Rejection reasons for SessionId::try_new.
Variants§
Empty
The candidate string was empty.
UnsafeCharacters
The candidate string contains a path separator (/ or \), a .. traversal
segment, or a NUL byte — any of which could escape the intended directory when
joined onto a filesystem path by zeph_session::session_dir.
Trait Implementations§
Source§impl Clone for SessionIdError
impl Clone for SessionIdError
Source§fn clone(&self) -> SessionIdError
fn clone(&self) -> SessionIdError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SessionIdError
Source§impl Debug for SessionIdError
impl Debug for SessionIdError
Source§impl Display for SessionIdError
impl Display for SessionIdError
impl Eq for SessionIdError
Source§impl Error for SessionIdError
impl Error for SessionIdError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for SessionIdError
impl PartialEq for SessionIdError
impl StructuralPartialEq for SessionIdError
Auto Trait Implementations§
impl Freeze for SessionIdError
impl RefUnwindSafe for SessionIdError
impl Send for SessionIdError
impl Sync for SessionIdError
impl Unpin for SessionIdError
impl UnsafeUnpin for SessionIdError
impl UnwindSafe for SessionIdError
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