pub enum GenerationEvent {
Part(MessagePart),
Failure(GenerationFailure),
}Expand description
One generation attempt emits parts, or ends with a failure.
Variants§
Part(MessagePart)
Failure(GenerationFailure)
Implementations§
Source§impl GenerationEvent
impl GenerationEvent
pub fn into_result(self) -> Result<MessagePart, GenerateError>
Trait Implementations§
Source§impl Clone for GenerationEvent
impl Clone for GenerationEvent
Source§fn clone(&self) -> GenerationEvent
fn clone(&self) -> GenerationEvent
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 moreAuto Trait Implementations§
impl Freeze for GenerationEvent
impl RefUnwindSafe for GenerationEvent
impl Send for GenerationEvent
impl Sync for GenerationEvent
impl Unpin for GenerationEvent
impl UnsafeUnpin for GenerationEvent
impl UnwindSafe for GenerationEvent
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