[][src]Enum vrchat_log::LogEnum

pub enum LogEnum {
    Log(Log),
    Warning {
        date: DateTime,
        msg: Vec<String>,
    },
    Error {
        date: DateTime,
        msg: Vec<String>,
    },
    Exception {
        date: DateTime,
        msg: Vec<String>,
    },
    Unknown(String),
}

Variants

Log(Log)
Warning

Fields of Warning

date: DateTimemsg: Vec<String>
Error

Fields of Error

date: DateTimemsg: Vec<String>
Exception

Fields of Exception

date: DateTimemsg: Vec<String>
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]

pub fn from_str(s: &str) -> Result<Self, ()>[src]

Trait Implementations

impl Debug for LogEnum[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.