[−][src]Struct tab_api::chunk::OutputChunk
Serializes an indexed chunk of stdout Send by a single running PTY process.
Fields
index: usize
The message index, generated by the PTY process.
data: Vec<u8>
Raw bytes of stdout
Implementations
impl OutputChunk
[src]
pub fn len(&self) -> usize
[src]
The data buffer length
pub fn contains(&self, index: usize) -> bool
[src]
Returns true if this chunk's data contains the given index
pub fn is_before(&self, index: usize) -> bool
[src]
Returns true if this chunk's data ends before the given index
pub fn truncate_before(&mut self, index: usize)
[src]
Truncates the current output chunk, removing all data that is before the given index
pub fn start(&self) -> usize
[src]
The byte index at which this buffer starts (inclusive)
pub fn end(&self) -> usize
[src]
The byte index at which this buffer ends (exclusive)
Trait Implementations
impl Clone for OutputChunk
[src]
pub fn clone(&self) -> OutputChunk
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for OutputChunk
[src]
impl<'de> Deserialize<'de> for OutputChunk
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for OutputChunk
[src]
impl PartialEq<OutputChunk> for OutputChunk
[src]
pub fn eq(&self, other: &OutputChunk) -> bool
[src]
pub fn ne(&self, other: &OutputChunk) -> bool
[src]
impl Serialize for OutputChunk
[src]
pub fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for OutputChunk
[src]
impl StructuralPartialEq for OutputChunk
[src]
impl ToString for OutputChunk
[src]
Auto Trait Implementations
impl RefUnwindSafe for OutputChunk
impl Send for OutputChunk
impl Sync for OutputChunk
impl Unpin for OutputChunk
impl UnwindSafe for OutputChunk
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> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Task for T
[src]
pub fn task<Out>(
name: &str,
fut: impl Send + Future<Output = Out> + 'static
) -> Lifeline where
Out: Debug + Send + 'static,
[src]
name: &str,
fut: impl Send + Future<Output = Out> + 'static
) -> Lifeline where
Out: Debug + Send + 'static,
pub fn try_task<Out>(
name: &str,
fut: impl Send + Future<Output = Result<Out, Error>> + 'static
) -> Lifeline where
Out: Debug + 'static,
[src]
name: &str,
fut: impl Send + Future<Output = Result<Out, Error>> + 'static
) -> Lifeline where
Out: Debug + 'static,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,