pub struct PlayerMessageBuilder { /* private fields */ }Expand description
Builder for PlayerMessage.
Implementations§
Source§impl PlayerMessageBuilder
impl PlayerMessageBuilder
Sourcepub fn level<VALUE: Into<PlayerMessageLevel>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn level<VALUE: Into<PlayerMessageLevel>>( &mut self, value: VALUE, ) -> &mut Self
Keep in sync with MediaLogMessageLevel We are currently keeping the message level ‘error’ separate from the PlayerError type because right now they represent different things, this one being a DVLOG(ERROR) style log message that gets printed based on what log level is selected in the UI, and the other is a representation of a media::PipelineStatus object. Soon however we’re going to be moving away from using PipelineStatus for errors and introducing a new error type which should hopefully let us integrate the error log level into the PlayerError type.
pub fn message<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn build(&self) -> Result<PlayerMessage, PlayerMessageBuilderError>
pub fn build(&self) -> Result<PlayerMessage, PlayerMessageBuilderError>
Trait Implementations§
Source§impl Clone for PlayerMessageBuilder
impl Clone for PlayerMessageBuilder
Source§fn clone(&self) -> PlayerMessageBuilder
fn clone(&self) -> PlayerMessageBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PlayerMessageBuilder
impl RefUnwindSafe for PlayerMessageBuilder
impl Send for PlayerMessageBuilder
impl Sync for PlayerMessageBuilder
impl Unpin for PlayerMessageBuilder
impl UnsafeUnpin for PlayerMessageBuilder
impl UnwindSafe for PlayerMessageBuilder
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