[][src]Struct librojo::live_session::LiveSession

pub struct LiveSession {
    pub message_queue: Arc<MessageQueue<InstanceChanges>>,
    pub rbx_session: Arc<Mutex<RbxSession>>,
    pub imfs: Arc<Mutex<Imfs>>,
    // some fields omitted
}

Contains all of the state for a Rojo live-sync session.

Fields

message_queue: Arc<MessageQueue<InstanceChanges>>rbx_session: Arc<Mutex<RbxSession>>imfs: Arc<Mutex<Imfs>>

Methods

impl LiveSession[src]

pub fn new(project: Arc<Project>) -> Result<LiveSession, LiveSessionError>[src]

pub fn restart_with_new_project(
    &mut self,
    project: Arc<Project>
) -> Result<(), LiveSessionError>
[src]

Restarts the live session using the given project while preserving the internal session ID.

pub fn root_project(&self) -> &Project[src]

pub fn session_id(&self) -> SessionId[src]

pub fn serve_place_ids(&self) -> &Option<HashSet<u64>>[src]

Auto Trait Implementations

Blanket Implementations

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.

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

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

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

impl<T> Erased for T

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

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