[−][src]Enum vrchat_log::LogEnum
Variants
Log(Log)
Unknown(String)
Implementations
impl LogEnum
[src]
pub fn as_log_mut(&mut self) -> Option<&mut Log>
[src]
Optionally returns mutable references to the inner fields if this is a LogEnum::Log
, otherwise None
pub fn as_log(&self) -> Option<&Log>
[src]
Optionally returns references to the inner fields if this is a LogEnum::Log
, otherwise None
pub fn into_log(self) -> Result<Log, Self>
[src]
Returns the inner fields if this is a LogEnum::Log
, otherwise returns back the enum in the Err
case of the result
pub fn as_warning_mut(&mut self) -> Option<(&mut DateTime, &mut Vec<String>)>
[src]
Optionally returns mutable references to the inner fields if this is a LogEnum::Warning
, otherwise None
pub fn as_warning(&self) -> Option<(&DateTime, &Vec<String>)>
[src]
Optionally returns references to the inner fields if this is a LogEnum::Warning
, otherwise None
pub fn into_warning(self) -> Result<(DateTime, Vec<String>), Self>
[src]
Returns the inner fields if this is a LogEnum::Warning
, otherwise returns back the enum in the Err
case of the result
pub fn as_error_mut(&mut self) -> Option<(&mut DateTime, &mut Vec<String>)>
[src]
Optionally returns mutable references to the inner fields if this is a LogEnum::Error
, otherwise None
pub fn as_error(&self) -> Option<(&DateTime, &Vec<String>)>
[src]
Optionally returns references to the inner fields if this is a LogEnum::Error
, otherwise None
pub fn into_error(self) -> Result<(DateTime, Vec<String>), Self>
[src]
Returns the inner fields if this is a LogEnum::Error
, otherwise returns back the enum in the Err
case of the result
pub fn as_exception_mut(&mut self) -> Option<(&mut DateTime, &mut Vec<String>)>
[src]
Optionally returns mutable references to the inner fields if this is a LogEnum::Exception
, otherwise None
pub fn as_exception(&self) -> Option<(&DateTime, &Vec<String>)>
[src]
Optionally returns references to the inner fields if this is a LogEnum::Exception
, otherwise None
pub fn into_exception(self) -> Result<(DateTime, Vec<String>), Self>
[src]
Returns the inner fields if this is a LogEnum::Exception
, otherwise returns back the enum in the Err
case of the result
pub fn as_unknown_mut(&mut self) -> Option<&mut String>
[src]
Optionally returns mutable references to the inner fields if this is a LogEnum::Unknown
, otherwise None
pub fn as_unknown(&self) -> Option<&String>
[src]
Optionally returns references to the inner fields if this is a LogEnum::Unknown
, otherwise None
pub fn into_unknown(self) -> Result<String, Self>
[src]
Returns the inner fields if this is a LogEnum::Unknown
, otherwise returns back the enum in the Err
case of the result
impl LogEnum
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for LogEnum
[src]
impl Send for LogEnum
[src]
impl Sync for LogEnum
[src]
impl Unpin for LogEnum
[src]
impl UnwindSafe for LogEnum
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,