⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

StreamingService

Struct StreamingService 

Source
pub struct StreamingService { /* private fields */ }
Expand description

CRI Streaming Service implementation.

Implementations§

Source§

impl StreamingService

Source

pub fn new() -> Self

Create a new streaming service.

Source

pub fn exec_sync( &self, request: &ExecRequest, ) -> Result<ExecResponse, StreamError>

Run a command synchronously in a container.

Source

pub fn run_command( &mut self, request: &ExecRequest, current_tick: u64, ) -> Result<u64, StreamError>

Start an asynchronous command session.

Source

pub fn attach( &mut self, request: &AttachRequest, current_tick: u64, ) -> Result<u64, StreamError>

Attach to a running container’s I/O streams.

Source

pub fn port_forward( &mut self, request: &PortForwardRequest, current_tick: u64, ) -> Result<u64, StreamError>

Set up port forwarding for a pod sandbox.

Source

pub fn close_session(&mut self, session_id: u64) -> Result<(), StreamError>

Close a streaming session.

Source

pub fn session_status(&self, session_id: u64) -> Option<&StreamSession>

Get session status.

Source

pub fn active_session_count(&self) -> usize

Count active sessions.

Source

pub fn cleanup_closed(&mut self) -> usize

Remove closed sessions.

Trait Implementations§

Source§

impl Debug for StreamingService

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for StreamingService

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl Freeze for StreamingService

§

impl RefUnwindSafe for StreamingService

§

impl Send for StreamingService

§

impl Sync for StreamingService

§

impl Unpin for StreamingService

§

impl UnwindSafe for StreamingService

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.